import mongoose from 'mongoose';

const Schema = mongoose.Schema;
const UnhandledrejectionSchema = new Schema({
  unhandledrejection: {
    type: Object,
    required: [false, 'errors field is required'],
  },
});

const Unhandledrejection = mongoose.model(
  'unhandledrejection',
  UnhandledrejectionSchema
);

export default Unhandledrejection;
